Skip to content

fix: use parallel config value from configuration file#26

Merged
inureyes merged 4 commits into
mainfrom
fix/parallel-config-support
Aug 27, 2025
Merged

fix: use parallel config value from configuration file#26
inureyes merged 4 commits into
mainfrom
fix/parallel-config-support

Conversation

@inureyes
Copy link
Copy Markdown
Member

Previously, the parallel setting in config files was completely ignored.
This fix implements proper config support for the parallel option:

  • Add get_parallel() method to Config struct (follows same pattern as get_timeout)
  • Add parallel field to ClusterDefaults struct
  • Check if user explicitly specified -p/--parallel in CLI args
  • Use config value when CLI option not explicitly provided
  • Priority: CLI (if explicit) > Cluster config > Global defaults > CLI default (10)

Now users can set parallel in their config files:
defaults:
parallel: 50
clusters:
production:
parallel: 100

Fixes the issue where config parallel values were defined but never used.

inureyes and others added 4 commits August 27, 2025 17:29
Previously, the parallel setting in config files was completely ignored.
This fix implements proper config support for the parallel option:

- Add get_parallel() method to Config struct (follows same pattern as get_timeout)
- Add parallel field to ClusterDefaults struct
- Check if user explicitly specified -p/--parallel in CLI args
- Use config value when CLI option not explicitly provided
- Priority: CLI (if explicit) > Cluster config > Global defaults > CLI default (10)

Now users can set parallel in their config files:
  defaults:
    parallel: 50
  clusters:
    production:
      parallel: 100

Fixes the issue where config parallel values were defined but never used.
Resolve conflicts by keeping SSH compatibility features from main:
- SSH-compatible command-line interface (#25)
- Help message when no arguments provided (#20)
- Parallel config support fix (#18)

All functionality from both branches preserved including:
- SSH mode with interactive shell support
- Multi-server mode with parallel execution
- Proper argument parsing for SSH compatibility
- Configuration-based parallel limits
@inureyes inureyes self-assigned this Aug 27, 2025
@inureyes inureyes added type:enhancement New feature or request fix labels Aug 27, 2025
@inureyes inureyes merged commit 9550834 into main Aug 27, 2025
3 checks passed
@inureyes inureyes added priority:medium Medium priority issue status:done Completed labels Sep 9, 2025
@inureyes inureyes deleted the fix/parallel-config-support branch October 30, 2025 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium Medium priority issue status:done Completed type:enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant